package model;

/**
 * for demonstrating the domain model
 * 
 * @author rex
 * 
 */
public class User {

	private String name;
	private String password;
	private int age;

	public User() {
		name = "undefined name";
		age = -1;
	}

	public User(String name, String password, int age) {
		this.name = name;
		this.password = password;
		this.age = age;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "user " + name + ", " + password + ", " + "age: " + age;
	}
}
